<%--
  Created by IntelliJ IDEA.
  User: Dell
  Date: 2021/11/16
  Time: 10:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%String path = request.getContextPath();%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>欢迎页面-X-admin2.0</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />

    <link rel="stylesheet" href="<%=path %>/web/index/css/font.css">
    <link rel="stylesheet" href="<%=path %>/web/index/css/xadmin.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="<%=path %>/web/index/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="<%=path %>/web/index/js/xadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

    <script type="text/javascript">
        function check_form(){
            var tel = document.getElementById("tel").value;

            if(tel==""){
                alert("系统提示：填写不规范（联系方式 不能为空！请检查……）");
                return false;
            }

        }

        function check_msg(){
            var msg = '${b}';
            if(msg=="true"){
                alert("系统提示：修改数据成功！");
            }if(msg=="false"){
                alert("系统提示：修改数据失败！请检查……");
            }
        }

    </script>





</head>

<body onload="check_msg()">
<c:forEach var="it" items="${list}">
    <div class="x-nav">
          <span class="layui-breadcrumb">
            <a href="">员工信息管理</a>
            <a>
              <cite>个人信息</cite></a>
          </span>
        <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
            <i class="layui-icon" style="line-height:30px">ဂ</i></a>
    </div>
    <div class="x-body">
        <h1 ><strong style="font-size: 25px;">个人信息</strong></h1>
        <form action="managers_info_update" method="post" onsubmit="return check_form()">
            <input type="hidden" name="id" id="id"  autocomplete="off" value="${it.id}" class="layui-input"/>

            <table class="layui-table">

                <tr>
                    <th style="text-align: right;">真实姓名：</th>
                    <td style="width: 200px;">
                        ${it.username}
                    </td>
                    <td style="color: red;"></td>
                </tr>

                <tr>
                    <th style="text-align: right;">身份证号：</th>
                    <td style="width: 200px;">
                            ${it.cardid}
                    </td>
                    <td style="color: red;"></td>
                </tr>

                <tr>
                    <th style="text-align: right;">年龄：</th>
                    <td style="width: 200px;">
                        ${it.age}
                    </td>
                    <td style="color: red;"></td>
                </tr>

                <tr>
                    <th style="text-align: right;">性别：</th>
                    <td style="width: 200px;">
                            ${it.sex}
                    </td>
                    <td style="color: red;"></td>
                </tr>

                <tr>
                    <th style="text-align: right;">联系方式：</th>
                    <td style="width: 200px;"><input type="text" name="tel" id="tel"  autocomplete="off" value="${it.tel}" class="layui-input"/></td>
                    <td style="color: red;">*必填项</td>
                </tr>

                <tr>
                    <td colspan="3" style="text-align: center;">
                        <button class="layui-btn"  lay-submit="" lay-filter="sreach" type="submit">信息修改</button>
                    </td>
                </tr>

            </table>
        </form>
    </div>
</c:forEach>
</body>

</html>
